<?php

require_once("AuthorDAO.php");
require_once("BookDAO.php");
require_once("ComicDAO.php");
require_once("Facade.php");
#$dao = new AuthorDAO();
#var_dump($dao->getAll());
#
#$dao = new BookDAO();
#var_dump($dao->getAll());
#
#$dao = new ComicDAO();
#var_dump($dao->getAll());

$facade = ComicFacade::instance();
#var_dump($facade->getAllAuthors());
var_dump($facade->getComicsByAuthorId(1));
var_dump($facade->getRemoteUrls(10,2));
var_dump($facade->getLocalFile(1,0,2,20));
var_dump($facade->getAllUrlsByBookId(1));
#var_dump($facade->getImgSize("/tmp/1.png"));
#var_dump($facade->imgToThumb("/tmp/1.png", "/tmp/test.png"));
#var_dump($facade->imgToThumb($facade->getLocalFile(1,0,1,2), "/tmp/test.png"));
var_dump($facade->getJsonByBookId(1));

?>
